package com.dominator.serviceImpl;

import com.dominFramework.core.typewrap.Dto;
import com.dominator.repository.DaoBigReward;
import com.dominator.service.ApiBigRewardService;
import com.dominator.utils.api.ApiMessage;
import com.dominator.utils.api.ApiMessageUtil;
import com.dominator.utils.exception.ApiException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApiBigRewardServiceImpl implements ApiBigRewardService {

    @Autowired
    DaoBigReward bigRewardDao;

    @Override
    public ApiMessage queryList(Dto dto) throws ApiException {
        List<Dto> list = bigRewardDao.queryList(dto);

        return ApiMessageUtil.success(list);
    }
}
